/*
-----------------------------------------------------------------------------
This source file is part of Labor3D
(Labor 3D Graphics Engine)

Copyright (c) 2009-2020 Rock Mao
* creator : Rock Mao
* created : 2011-2-13   12:29
* filename: LaborModelExPlugin.cpp
-----------------------------------------------------------------------------
*/
#include "stdafx.h"
#include "LaborModelExPlugin.h"
#include "LaborCore.h"
#include "Common/LaborHashString.h"

const CLString strPluginName = L"ModelEx";

//---------------------------------------------------------------------
CLModelExPlugin::CLModelExPlugin()
{

}
//---------------------------------------------------------------------
const CLString& CLModelExPlugin::getName() const
{
	return strPluginName;
}
//---------------------------------------------------------------------
void CLModelExPlugin::install()
{
	// Create the DirectX 9 rendering api
#ifdef LABOR_STATIC_LIB
	HINSTANCE hInst = GetModuleHandle( NULL );
#else
#  ifdef DEBUG
	HINSTANCE hInst = GetModuleHandleA( "LaborModelExD.dll" );
#  else
	HINSTANCE hInst = GetModuleHandleA( "LaborModelEx.dll" );
#  endif
#endif
	getPluginInfo( &m_pluginInfo );

}
//---------------------------------------------------------------------
void CLModelExPlugin::initialise()
{
	int i=0;
	// nothing to do
}
//---------------------------------------------------------------------
void CLModelExPlugin::destory()
{
	// nothing to do
}
//---------------------------------------------------------------------
void CLModelExPlugin::uninstall()
{
}

//---------------------------------------------------------------------
void CLModelExPlugin::getPluginInfo(slPluginInfo* pluginfo)
{
	pluginfo->m_Build = 0;
#ifdef _DEBUG 
	pluginfo->m_Build |= eBuild_Debug;
#endif
	pluginfo->m_ID = 102;
	pluginfo->m_Type = ePT_Renderer;
	strncpy(pluginfo->m_Description, "Rock's Model Ex" , 256);
	strncpy(pluginfo->m_Name,"Model Ex",32);

	sHashValue _value;
	CLHashCodeTable::singleton().string_hash("Model Ex",_value);
	pluginfo->m_ID = _value.indexHash;
}
